package com.distributer.order.event;

import org.springframework.context.ApplicationEvent;

public class OrderItemAddFinishedEvent extends ApplicationEvent{

	private static final long serialVersionUID = -8446997929546734287L;

	private final String orderNo;
	
	private final boolean addOrderItemResult;
	
	public OrderItemAddFinishedEvent(Object source,String orderNo,boolean addOrderItemResult) {
		super(source);
		this.orderNo = orderNo;
		this.addOrderItemResult = addOrderItemResult;
	}
	
	public OrderItemAddFinishedEvent(String orderNo,boolean addOrderItemResult) {
		super(orderNo);
		this.orderNo = orderNo;
		this.addOrderItemResult = addOrderItemResult;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public boolean isAddOrderItemResult() {
		return addOrderItemResult;
	}

}
